<?php
//Standard Sidebar
$yamlconfig = new di_yaml_config();
$list = '';
if ( $yamlconfig->di_getOptionValue('di_layout') === 2 ) {
	if ( $yamlconfig->di_getOptionValue('di_txtalign') === 1 ) {
		$list = 'listright';
	} else {
		$list = 'listleft';
	}
} else {
	$list = 'listleft';
}
?>
					<ul class="sidebar <?php echo $list; ?>">
					<?php 	/* Widgetized sidebar, if you have the plugin installed. */
					if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : ?>
					<?php if ( $yamlconfig->di_getOptionValue('di_navisearch') !== 1 || $yamlconfig->di_getOptionValue('di_navi') === 0 ) : ?>
						<li id="search" class="widget widget_search">
							<?php include(TEMPLATEPATH ."/searchform.php"); ?>
						</li>
					<?php endif; ?>
						<li id="text" class="widget widget_text">
							<h3><?php _e('&uuml;ber dieses Blog',''); ?></h3>
							<div class="textwidget"><?php _e('Schreibe hier ein paar Worte &uuml;ber dich oder dein Blog.',''); ?></div>
						</li>
						<li id="syndicate-rss-widget" class="widget di_rss_info_widget">
						<h3><?php _e('Feed abonnieren',''); ?></h3>
							<ul id="di_rss">
								<li><a href="<?php bloginfo('rss2_url'); ?>" rel="nofollow" title="<?php _e('Syndicate this site using RSS'); ?>"><?php _e('Posts'); ?></a></li>
								<li><a href="<?php bloginfo('comments_rss2_url'); ?>" rel="nofollow" title="<?php _e('The latest comments to all posts in RSS'); ?>"><?php _e('Comments'); ?></a></li>
							</ul>
						</li>
						<li id="recent-entries" class="widget widget_recent_entries">
							<h3><?php _e('Recent Posts'); ?></h3>
							<ul>
								<?php wp_get_archives('type=postbypost&limit=5'); ?>
							</ul>
						</li>
						<?php wp_list_categories('show_count=1&title_li=<h3>' . __('Kategorien', '') . '</h3>'); ?>
					<?php endif ?>
					</ul>
